package com.learning.service;

import com.learning.dto.PermissionDTO;
import com.learning.entity.Permission;
import com.baomidou.mybatisplus.extension.service.IService;
import com.learning.result.Result;
import com.learning.vo.PermissionVO;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 教师权限表 服务类
 * </p>
 *
 * @author itRao
 * @since 2024-05-23
 */
public interface IPermissionService extends IService<Permission> {

    /**
     * 根据教师ID查询教师权限
     *
     * @param teacherId
     * @return
     */
    Result<PermissionVO> queryByTeacherId(Long teacherId);

    /**
     * 修改教师权限
     *
     * @param permissionDTO
     */
    void updatePermission(PermissionDTO permissionDTO);
}
